<?php
//首页控制器类
class IndexController extends AuthController{
    //首页
    public function index(){
        //显示视图
        $this->display();
    }
	
	public function welcome(){
		$userInfo = K('Admin')->where("aid='". session('aid') ."'")->find();
		$this->assign('userInfo', $userInfo);
		
		$this->assign('os_ver', php_uname());
		$this->assign('software', $_SERVER['SERVER_SOFTWARE']);
		$this->assign('php_ver', PHP_VERSION);
		$this->assign('server_ip', $_SERVER['SERVER_ADDR']);
		$this->assign('db_ver', mysql_get_client_info());
		
		$this->assign('login_time', time());
		$this->assign('login_ip', $_SERVER['REMOTE_ADDR']);
		
		$this->display();
	}
	
	public function left() {
		
		$this->display();
	}
	
	public function top() {
		$this->display();
	}
	
	public function bottom(){
	    $this->display();
	}
}
